import request from '@/utils/request'

// 查询循证医学相关数据列表
export function listEvidenceBasedMedicine(query) {
  return request({
    url: '/workstation/evidenceBasedMedicine/list',
    method: 'get',
    params: query
  })
}

// 查询循证医学相关数据详细
export function getEvidenceBasedMedicine(id) {
  return request({
    url: '/workstation/evidenceBasedMedicine/' + id,
    method: 'get'
  })
}

// 新增循证医学相关数据
export function addEvidenceBasedMedicine(data) {
  return request({
    url: '/workstation/evidenceBasedMedicine',
    method: 'post',
    data: data
  })
}

// 修改循证医学相关数据
export function updateEvidenceBasedMedicine(data) {
  return request({
    url: '/workstation/evidenceBasedMedicine',
    method: 'put',
    data: data
  })
}

// 删除循证医学相关数据
export function delEvidenceBasedMedicine(id) {
  return request({
    url: '/workstation/evidenceBasedMedicine/' + id,
    method: 'delete'
  })
}
